package cn.com.api.service.impl.base;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.com.api.entity.ApiU_user_friend_group;

import cn.com.api.mapper.ApiU_user_friend_groupMapper;

import cn.com.api.service.ApiU_user_friend_groupService;

/**
 * 
 **/
@Service
public class U_user_friend_groupServiceImplBase {
	@Autowired
	private ApiU_user_friend_groupMapper apiU_user_friend_groupMapper;
    
    // 根据id获取
	public ApiU_user_friend_group findU_user_friend_groupById(Integer id){
		ApiU_user_friend_group u_user_friend_group = apiU_user_friend_groupMapper.findU_user_friend_groupById( id );
		return u_user_friend_group;
	}
    
    //查看数据集
	public List<ApiU_user_friend_group> findU_user_friend_groups(){
        List<ApiU_user_friend_group> u_user_friend_groups = apiU_user_friend_groupMapper.findU_user_friend_groups();
		return u_user_friend_groups;
    }
   
    //根据条件查看数据集
	public List<Map<String, Object>> findU_user_friend_groupsByMap(HashMap condition){
        List<Map<String, Object>> u_user_friend_groups = apiU_user_friend_groupMapper.findU_user_friend_groupsByMap(condition);
		return u_user_friend_groups;
    }
    
	// 添加
	public int insertU_user_friend_group(ApiU_user_friend_group u_user_friend_group){
		int ret_I= apiU_user_friend_groupMapper.insertU_user_friend_group(u_user_friend_group);
		return ret_I;
	}

	// 修改
	public int updateU_user_friend_group(ApiU_user_friend_group u_user_friend_group){
		int ret_I= apiU_user_friend_groupMapper.updateU_user_friend_group(u_user_friend_group);
		return ret_I;
	}
	
    // 删除
	public int deleteU_user_friend_group(Integer id){
		int ret_I= apiU_user_friend_groupMapper.deleteU_user_friend_group( id );
		return ret_I;
	}
	
    // Foreign keys revelant		
		

	//region Indexs revelant
    
    
    
    
}


